import { createRouter, createWebHistory } from 'vue-router'
import microRouter from "@/MicroApp/router"
import HomeView from '@/views/Home.vue'

let routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/info',
    name: 'info',
    component: () => import('@/views/Info.vue')
  },
]
routes = routes.concat(...microRouter)
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
